package main

import (
	"fmt"
	"os"
	"path/filepath"
)

func main() {
	err := filepath.Walk("c:/Users/Jython", func(path string, info os.FileInfo, err error) error {
		fmt.Println(path)
		fmt.Println(info)
		os.Exit(222)
		if info.IsDir() {
			//ok, err := filepath.Match(`[aA][bB]*`, info.Name())
			ok, err := filepath.Match(`*\.db`, info.Name())
			if err != nil {
				return err
			}
			if ok {
				fmt.Println(path)
			}
		}
		return nil
	})
	if err != nil {
		fmt.Println("fail")
	}
}
